package com.sudo.service;

import com.sudo.pojo.SysButton;
import com.sudo.pojo.SysRoleButton;
import com.sudo.pojo.bo.SysButtonBO;

import java.util.List;

/**
 * @author：为道日损 2020-04-28 8:35
 */
public interface SysButtonService {

    List<SysButton> getSysButtonByMenuCode(String menuCode);

    SysButton getSysButtonByMenuButtonCode(String menuCode, String buttonCode);

    List<SysButton> getSimpleButtonByMenuCode(String menuCode);

    int updateSysButtonByMenuButtonCode(SysButtonBO sysButtonBO, String sessionUser);

    int addSysButton(SysButtonBO sysButtonBO, String sessionUser);

    int deleteSysButtonByMenuButtonCode(String menuCode ,String buttonCode);

    boolean isButtonCodeExist(String menuCode,String buttonCode);

    List<SysRoleButton> getButtonCodeByRoleMenuCode(String roleCode, String menuCode);

    List<SysRoleButton> getRoleButtonByMenuButtonCode(String menuCode, String buttonCode);
}
